<template>
	<view class="success-wrapper">
		<view class="pay-line">
			<image src="../../static/ic_wxpay.png"></image>
			<text>支付成功 </text>
		</view>

		<view class="info-line">
			<view>上海医益护健康 </view>
			<view class='price-line'>
				<span>￥</span>
				<span class="price">{{price}}</span>
			</view>
		</view>
		<view class="bottom" @click="finish">
			<view class="btn">完成</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
		     price:"0.00"
			}
		},
		onLoad(options) {
          this.price = options.price;
		},
		methods:{
			finish:function(){
				uni.navigateBack({
					delta:1
				})
			}
		}
	}
</script>

<style>
	.success-wrapper {
		display: flex;
		flex-direction: column;
		width: 100%;
		min-height: 100vh;
		background-color: #FFFFFF;
	}

	.pay-line {
		margin-top: 10%;
		width: 100%;
		display: flex;
		flex-direction: column;
		align-items: center;
		justify-content: center;
	}

	.pay-line image {
		width: 80upx;
		height: 80upx;
	}

	.pay-line text {
		color: #04BE02;
		font-size: 30upx;
		margin: 0 20upx;
		text-align: center;
	}

	.info-line {
		margin-top: 12%;
		width: 100%;
		display: flex;
		flex-direction: column;
		align-items: center;
		justify-content: center;
		color: #333333;
		font-size: 32upx;
	}



	.price-line {
		margin-top: 10upx;
		display: flex;
		flex-direction: row;
		color: #333333;
		font-size: 40upx;
		font-weight: bold;
	}

	.price-line .price {
		font-size: 60upx;

	}

	.bottom {
		position: absolute;
		bottom: 10%;
		display: flex;
		justify-content: center;
		align-items: center;
		width: 100%;
	}

	.bottom .btn {
		color: #747474;
		font-size: 28upx;
		width: 240upx;
		height: 60upx;
		line-height: 60upx;
		text-align: center;
		border: solid 2upx #04BE02;
		color: #04BE02;
		border-radius: 10upx;
	}
</style>
